package com.xusheng.cli.common.constant;

/**
 * 正则表达式
 *
 * @author jy
 * @since 2021-11-16 11:00
 */
public class Regular {

    public static final String PASSWORD = "^(?!\\d+$)[\\da-zA-Z]{8,16}$";

    public static final String PASSWORD_MASSAGE = "密码必须为8-16大小写字母和数字(不能是纯数字)!";

    public static final String NEWPASSWORD = "/^\\S{6,}$/";

    public static final String NEW_PASSWORD_MASSAGE = "密码字数至少为6位";

    public static final String ACCOUNT = "^(?!\\d+$)[\\da-zA-Z]{8,16}$";

    public static final String ACCOUNT_MASSAGE = "账户必须为8-16大小写字母和数字(不能是纯数字)!";

    public static final String PERMISSION = "^[A-Z:]{1,20}$";

    public static final String PERMISSION_MASSAGE = "权限code必须为1-20的大写字母和符号':'组合!";

    public static final String ROLE = "^[A-Z]{1,20}$";

    public static final String ROLE_MASSAGE = "角色code必须为1-20的大写字母!";

    public static final String RANGE = "^([0-9]{1,2}|100)$";

    public static final String RANGE_MASSAGE = "只可以输入0-100的整数!";

    public static final String MOBILE = "(?:0|86|\\+86)?1[3-9]\\d{9}";

    public static final String MOBILE_MASSAGE = "请输入正确手机格式";

}
